added js functions, nuEnable() and nuDisable().