fix jshint "Unexpected assignment expression"