defined jquery objects once, removed unnecessary semi-colons & whitespace.

removed last trailing whitespace

Added style consistency.