removing the script tags from the view files