Fixed the ContentScript.JS bug

It used to die if it hit an error. Now it uses try and catch to fail
gracefully.