Split common.js to seprate js files, might make things eaiser to manage.