added toBrowserTimeZone and prettyDate methods and refactored class integration code

added toBrowserTimeZone and prettyDate methods and refactored class integration code