r8299: make the samr swat test use the samr.js lib