Currently I use one button to display a side menu and another to close it
You can use this simple approach using jQuery data attribute.
Menu Button
$('#menu').on('click', function(){
if($(this).data('stat') == "close"){
$(this).data('stat', 'open');
/* open Menu code */
}else if($(this).data('stat') == "open"){
$(this).data('stat', 'close');
/* close Menu code */
}
});