If String Not In Array Javascript Methods Syntax And Logic Error