Callback using ScriptProcessorNode Polling with requestAnimationFrame