fixed broken run tests script

It appears the smjs test script is broken. Before this change running `smjs js/test/run-tests` would output:
js/test/beautify-tests.js:73: TypeError: sanitytest is undefined

This change gets the test runner working but there are still 2 broken tests