Added callback check for javascript friendliness for the json parser