aradd.js refactoring