moved some html from js to index