fix dust variable is not populated if only js-if-test.js is executed
add "@js for" implementation, with tests