Added JS support for post creation.