Adding moment.js package and refactoring events template