fixing delegate by removing local variable to remedy infamous javascript...

This change fixes the bug described here: https://forums.html5dev-software.intel.com/viewtopic.php?f=26&t=4197&p=15270#p15270

and demonstrated here: http://jsfiddle.net/fP8v9/

For more info on the cause of this bug, see: http://stackoverflow.com/questions/1451009/javascript-infamous-loop-problem