updates based on jshint