Converting Time module to JS.
Merge pull request #2616 from edx/valera/convert_time_to_js

Converting Time module to JS.