JS modal fix