ignore my editor
put control into namespace and turn on "using strict' and correct any undefined variables
demo code appears incomplete - comment out for now