FYI: I happened to have the widgets.js loaded in the head as well as asynchronously. Loading it just within the head solved this issue.