Add a script block to the layout template