refactoring > Common.js