Return degrees instead of radians in compassHeading() JavaScript function example