update indexhtml to move the div code into js