Added self-running function to set jQuery $ variable