fix all jshint errors and add winston logger