Remove obsolete content and javascript.