moved scripts out of HTML
scripts out of html