[imp] use methods to remove scripts and stylesheets from header