Benjamin,
It doesn't seem like I can create one js file such as "browser_compatibility.js" and include the code from this and issue-968. Do you have any suggestions? I'd like to avoid creating two files, are they're related, despite being used on different pages. I could use try blocks to look for the elements, but I feel like it's far from ideal. Defining functions wouldn't help either to separate the two as you mentioned we should be moving all the js to an external file, so I wouldn't have a means of calling them.
Your input is appreciated, thanks.