Using platform.js to get this working on Firefox

Had to make some compromises to get this to work, but it runs on
Firefox 30 and Chrome 36! \o/