A skeleton for doing embedded Javascript widgets using RequireJS, grunt and tightly controlled globals.