localizing use of the jQuery variable, avoid collision with $
correcting a few name collisions