Sexagesimal calculator written in javascript.