An HTML5 implementation of the iOS compass app's spirit level