Little javascript helper to convert between different latitude/longtitude formats.