Some sound support added to emscripten port

Fixed a bug in reading WAV files.