Corrected main and setup. Jshint is now happy