Can we extract this in to a js file please?  It'll encourage re-use when `AODNindex.gsp` comes along...