switch back to use main.js. Updated js interaction to work with latest DOM structure