move ObjLen() into common.js