jshint. resize fixes