removes script and link tags