Fixed the error 'createGainNode is not a function'

createGainNode has been replaced with createGain.

New versions of Firefox don't work with createGainNode. The fix works with new and old versions of browsers.