Break In Game html 5 and JavaScript