Replacing javascript with jQuery syntax.