jquery rewrite