Replaced deprecated Web Audio API calls

Some Web Audio API calls have changed since implementation. Fixed them.