Add main.js to src/ and tests/spec/