native.js cleanup
compare.js unittests cleanup