Get Javascript Object Type
function type(obj){ return Object.prototype.toString.call(obj).slice(8, -1); }