Send forward command every cycle

It won't do any harm.
Switch to jQuery 1.10 instead of 2.0

Try to get it working in Windows Phone
Tell the phone to use high accuracy locations

I.e. use the GPS, not just the network location.
Heading is atan(lon/lat) not atan(lat/lon)
Fix angles greater than 180 degrees 

They are nearer the other way - add or subtract 360 from them.
Use heading from GPS if we have one
Refactor a bit to make JSLint happier

Declare some variables before we use them.