tidy up html and move javascript to bottom