Some performance improvement

The onUpdate script will run only in the active tab - That makes opening
chrome with many tabs to run the script only ones.