add dojo widget snippet