added a check when the user attempts to make a post with no content
removed superfluous js file