Get rid of the console.log

In case the callback isn't provided we don't want to do anything.
Problem with console.log is it might break on old browsers.