Make jshint ignore define and console
Add missing semicolon
Remove unused variable
Preliminar version of chapter 9 example