Fixed webaudio api. Cleaned up old code.