Modified Simple.js to use dojo/on and removed redundant helper functions