Minor nitpick, I'd add a \n before this line. Since the `setLanguage` method is so long and CS doesn't have closing `}` I wasn't sure whether `window.setLanguage = setLanguage` belonged to the `setLanguage` method (evidently not when you think it twice, but it is a tad confusing)