Adds scripting to pages