Fixes createPost.js syntax error.