[build.js] Add test scripts and wire together mocha, require.js and chai