Port test/setup.js to CoffeeScript for consistency

(CI tests will pass once #1 gets merged.)