JavaScript Motion Sensor Ski Game