remove references to JS code