updates to allow page to be minified correctly