Move ninja_forms_json_response() in order to fix undefined variable

Move ninja_forms_json_response() in order to fix undefined variable in ninja_forms_post_process(). Fixes #297