unused js code deleted