Removing console.log from js code