added post.js file to index.html