Update mnav.js

Fixed open/close bug