fix perfomance of getObjectType method in js