Revisions to JS to comply with jslinting.
Added JQuery Elements