How To Check The Type Of Variable In Javascript