Typescript Check If String In Javascript