JavaScript implementation of the classic arcade game