refactored - added jQuery to main.js