fix ajax request, use json properly
Merge branch 'master' of github.com:tyrsius/jsongen