[javascript] How can I check if a var is a string in JavaScript?