Fixed socket.io not loading problem

-socket.io is attached correctly to the express app
-un-commented static javascripts in header.ejs
-added init function in post.js route to initialize socket.io