change jquery scope

change $ to jquery
Merge pull request #2075 from tripflex/fix_jquery_scope

Outside any closure, need to use the no-conflict version