Update and rename newpost.js to post.js