adapt to jQuery coding standards