Fix lint warnings in common.js