moved scripts to basehtml