Slight backwards compatible change in JSServer.jsonToValue

1.0.3 is still running on TravisCI and can't build this.

This time, it happens to be a slightly shorter/more idiomatic way of
doing things.