Update script.js

fix bug in chrome:activate/deactivate sometimes don`t work!