remove unused js code