Fix jQuery using $ and move to correct local