Fixes issue #577, syntax error in JSONP response