remove script tags, excess newlines & spaces