Fix jshint and syntax issues on main.js sample script