Code Works in Preview but not in Published?

@guille Import goes at the very top above the onReady function.
maybe that will help.