Revert "Move JS to footer"

This breaks the lame way embeds work

This reverts commit 007fd96294d9a081b117c72af5c4dab8d10b0899.