remove console.logs and remove all unused js functions