vis: Don't unroll stored drawResults arguments by hand
JS has nice '...' splat operator for passing arrays as positional arguments. Let's use it.
Sadly JS does not seem to have any built-in to compare two array-like object so we have hand-roll that part.
While we are it we can rename the global variable to something slightly more meaningful.
Signed-off-by: Arkadiusz Hiler arkadiusz.hiler@intel.com