fixes callbackForJSON to be callBackForJSON.
removed unnecessary code