script and html structure - fix