Updated onresourcetimingbufferfull from Function to EventHandler