removing unused js code