Not sure i understand what you mean. I was just showing the debugger to show whats happening at the browser end of it. Maybe could help point out something thats off. Code is exactly same, as you can see. It works in edit page area but not as a custom widget.
Im guessing im loading the javascript wrong but not sure how to change it. I need it inline and would be great to understand why its not working in this specific case.