cobyObj() refactoring; remove all JSHint warrnings