Fixed the gainNode issue, added support for Firefox.