added js for testpage.html