Fix JS modal box loading