large try catch

based on bugs from my last pull request, in general, including this JS script shouldn't prevent execution on the page that included it. this is a safe guard
Merge pull request #55 from parisholley/trycatch

Global try catch