Add an ajax helper
Fixing typo in comment
Fixing content-type of error response
Clear output buffer only if it's not empty
Merge pull request #783 from mlocati/add-ajax-helper

Add ajax helper