Javascript Check If String Is Empty Or Undefined