Speed correction in the jQuery