To make this happen I updated to Babel 6 and changed to the es2015
preset since Firefox/Safari do NOT support classes, let, generators...
Now that compiled code is not ES6 any more we can run Uglify on it
too.
'Splore is 200k minimized which isn't terrible.
Towards #603
This replaces the fetch polyfill with 2 more targetted functions:
fetchText and fetchArrayBuffer
There is one implementation for node and one for browsers. Browserify
picks the browser version by reading the value out of package.json
Towards #605
This uses Karma with mocha+chai and browserify+babel. The tests
currently need to be run in a browser because we currently depend on
non node.js features (Blob and FileReader)
To run the tests go to <noms>/js/ and do `npm run start-test`.
Issue #256