Finally got a working start for some JS unit testing