reformatted, added toBrowserTimeZone and prettyDate methods, refactored class integration code and added test cases