updated most of the jQuery