An AMD compliant dialog written using Backbone.js