strings must use single quote
!== instead of !=, check both null and undefined for chrome/ff inconsistency