add $ as param to jQuery in functions.js