Added jquery and refactored JavaScript intellisense