updated js and ejs files