put the scripts in the head

this way, the code readability is better because we have put all of ours
scripts so far in the HEAD tag, not in the BODY.