check js type use Object.prototype.toString.call