Fix issues in objectEach.js