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

...class integration code and added test cases