Use the following statement in a JS file.
jQuery(document).ready(function($){ // jQuery code is in here });
After declaring the above statement you will be able to use $ sign.