adopt some jQuery plugin best practices