added info page. Refactored js.