refactor turning == into ===

JSHint for travis is configured to require === instead of ==, even if it is the fail-proof >>typeof x == "undefined"<<