createPost reafctored - added require.js functionality, tested, working