refactoring: 'common.js'