Tweak modal javascript