Pass jQuery directly.
Use strict equalities.
Move variable definitions to top of scope.
Move styles inline.
Remove unused event variables.