fixed issue on json.cgi, when format=js