Move event pages script inline