Remove unused Javascript elements.