#336: ajax_json.js, remove unnecessary code

Resolves #336.