switch to better code loading

no more inline javascript in html