Javascript to track mouse position and create modal if user is leaving window.