Rewrite test using jQuery, delete old test