revised multiple.js