Scripts and UDIXes automatically have a Framework object. A widget needs to declare a new instance of the framework, in its page's Javascript, rather than having one provided for you automatically:
<script>
// Create an instance of the framework
var Framework = new FXB.Framework();