Tidying scripts and html