[javascript] How to check if a value is not null and not empty string in JS