Some minor optimizations on string construction and adding the build
script to package.json. Doing strings in C code was my intention, but
getting strings back out of emscripten and into 'normal' Javascript is
ridiculously slow.