HTML5 Javascript Game Using PhoneGap