Removes old references to JS files