Performance improvements

Changes to stop methods, especially event handlers, from recreating objects that already exist and remeasuring values that should be constant.  Changed input object to long form jQuery reference in case other libraries are using $.