Added onLoad function in chat.ejs