remove all unused js functions