Removed shell specific code from common.js