Move the scripts back into head tag. The FOUC isn't worth it. Add missing JavaScript from a previous commit.