Added a node module version

Added a node module version and little optimization in objType method