[front-end, karma] resolves #76, merge js/main.js & test/unit/test-main.js into js/main.js