use jquery.form to upload files
fix import for IS_POPUP_VAR