Is there a reason these two lines aren't combined into `var result = ...`