Update compassHeading JavaScript function example from using Rx, Ry to Vx, Vy respectively in line with the formulas provided in the spec