remove duplicate variable
change to tab indent to match dojo style guide and tweak comments