remove script from test element