improve dui/Stateful doc
jshint fixes
Firefox defines HTMLElement.onshow.
Change test to use non-reserved function name.
setup grunt