add debug package, setup debug to work with browserify, change console.logs to use debug