moved scripts to the body of the dom