Basic structure, layout and js flow.