Get test to pass; create test.js

I created a test.js to handle both the test runner code and utility code
for testing.

Next step is to finish all the tests before I get into too much
technical debt.