Revert "moved the script tags to the end"

This reverts commit 651d2384e60d5a4601ee982c495bf3b957559419.
Revert "Revert "moved the script tags to the end""

This reverts commit 0baeba49f36c161886cabde8d834a78a7ad9e0b5.
Revert "Revert "Revert "moved the script tags to the end"""

This reverts commit eaa9fba3387a0c497b2a96ab707f5f952c281cda.