get test.js running successfully in the browser

had to use:
chromium-browser --allow-file-access-from-files example.html
because:
"Cross origin requests are only supported for HTTP."