javascript test if value is not null