moved scripts to head tag