added moment.js and fixed small syntax error