Make it work in the browser too
Manually merging https://github.com/linusnorton/fun-js/commit/c8e7242c7c01400d7ca801e42ae06c12fc20533e.