Fixed compile syntax errors.
Bugfix: Modal no longer closes prematurely on input.
Added jQuery UI to core.html