move add_js on form to attach