added functionality to javascript
added moment.js link to html