How To Check Input Type In Javascript