javascript/html unit testing