added script tags in ejs files for sockets