How to avoid Uncaught ReferenceError: $ is not defined in jQuery