Use newer versions AudioContext methods: createScriptProcessor() and createGain()

So that this works in newer browsers that have updated AudioContext APIs.