function
sleep(numberMillis){
var
now=
new
Date();
exitTime=now.getTime()+numberMillis;
while
(
true
){
if
(now.getTime()>exitTime){
return
;
}