Changed everything to camelcase
added if(debug) to all consol.log statements
changed to camelCase