merged config.js into common.js and fixed up all html refs