FLAC encoder in JavaScript