Based on console error provided by you in the comments Uncaught ReferenceError: $ is not defined user_script.js:1 (anonymous function)
, it seems that you have not included jQuery library into the same file where this external script file is included.
Please included jQuery and it should work.