Change script position to avoid FOUC