Dojo tool kit 1.9 custom widget sample.