Separate menu JS from map JS.