Make it work on Node as well as in browser

Also remove dependency on easyFFI - it uses eval, which makes it a
massive pain to track errors down, as well as not being necessary.