checking mouseout event for leaving the main map div

Fixes #79