javascript check instanceof string