Update modal.js

* Parameters are accessible in all transcludeWidgets. This is made possible via makeWidget's options.variables
* Fixed a bug that param could also be a string