Remove unused JavaScript code