Catch exception if data returned to ajax is not json
Merge pull request #78 from DirectEmployers/ajax-reg-fix

Catch exception if data returned to ajax is not json