- remove unused function
- remove console.log in js