Put a default `en-US` on this just in case?

```var lang = $('html').attr('lang') || 'en-US';```