Move test JS into HTML files