minor js changes

minor js changes in common.js