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