Remove layout-specific JS to avoid XSS error