Removed console.log and useless functions.
Prevent a console warning.