Change createGainNode to createGain.