Web Game Assigment, Javascript and Jquery