typeof undefined should be a string @line 222

Was causing an error in the browser.