Update content_script.js

Bug fixes