[front-end] declare in requirejs shim config that 'json-editor' exports JSONEditor
[front-end] wrap unit-testing setup in js/main.js into a closure