ANNPLT-71:  Fix a JS error from recent refactoring, take 2