Update jquery modal script

* it fixes the multi modal bug