Return object instead of just postId - issue #559
Merge pull request #567 from aogilvie/fix/js-ui-response-object

Return object instead of just postId - issue #559