Javascript/Jquery RPG