used es6 conventions for variables and anonymous functions declaration
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Description of change
changed es5 "var" to "const" and anonymous functions to arrow function syntax