Added simple test, and instructions on how to run it.

Add tests by editing `test/index.html`: add `<script>` tags to reference the code under test and the test javascript itself.