added form to submit new posts
added js to intercept submit form