Change the json output for javascript.