Move viscommon.js to common.js