code changes to comply with jquery style guide