jQuery style guide and variable name fixes