Tearing my hair out here...
I’ve got a little app working perfectly on js fiddle - but the very same code that’s working in this fiddle is failing