update to roy.js, simplify arrays.roy