javascript check if not equal to null