Fix stop onaudioprocess for after a while

The onaudioprocess will be stop after a while. The reason is that it
will release the ScriptProcessor object by garbage collection in Chrome
(bug?). So, make this object global.