Fix for "bad assignment" JSHint error (from https://groups.google.com/forum/#!topic/jshint/eYIxXuvPu3M).