Update modalService.js

Make controller safe for minification.