Update contentscript.js

Simplify