* fix error of function $.closeModal in modal.trigger.js.
 * optimized js code.