Prettify, consolidate html js into main.js