updated the common.js file per jslints recommendations