Streamlined the html for computing compass location.