Changes LayoutTag to use the new HtmlWriter.writeGridJavaScript method.