Check Type Of Variable Javascript