Use generator.log in example

remove console.log usage in example as stated in the introduction :P