remove unused js functions