fixed error property $ of object is not a function

changed $ to jQuery, because without it the system would generate the following error:

Uncaught TypeError: Property '$' of object [object Window] is not a function 
Merge pull request #1202 from roed/3.1

fixed error property $ of object is not a function