move scipts block to the head tag
Merge pull request #785 from kubked/scripts_loading_order

Move scripts block to the head tag