Javascript Test If String Not Empty Nest