jshint - curly: true
typeof !== 'undefined' as a string

fixes console bug in IE; tick version