Timing update
Refactor to the jQuery plugin format