refactoring

trying to remove variables from the global name space

updated jquery to 2.1.1