Moving script tags to head element.