Copied relevant files from Backbone.Modal