add changes from patch that wouldn't apply
play.js, record.js, waveform.js: unbreak the build