Javascript Check If Variable Is String