changed modularizing implementation, older implementation is in ModulrAJ.js