Fixing bug in javascript which broke enable/disable descendants

Fixing 137. Javascript for recursively traversing descendants used wrong...