edited post.ejs to make nice with sockets and observer pattern