Move script tags to head for better readability