typo correction.

also 'function(...){console.log(...)}' is the same as 'console.log' (but I think you're being explicit to be clear)