Javascript Check If Type Is String