javascript for new post in progress
search and create post is functional