javascript sleep (be aware that it might freeze the entire computer)