fix linting errors in `peer.js`