Move WAV code into remix.js