Template for coding dojo in javascript