Javascript build and API for libsamplerate