fix detection of window and AudioContext
read entire fmt chunk in WAVDemuxer fixes #35
Merge pull request #36 from sebpiq/issue-35

Fixes issue 35 and some other little bug