ANNPLT-71:  Fix a JS error from recent refactoring