Fix js issue.

Moved from typeof blah != 'undefined' to blah !== undefined. Per Chris Brue's explanation that it's bad, not best practice and daaaangerous.