Update modalbox.js

Fix bug for IE7 (and maybe other versions).