At the end of your animate, you remove the open
class. Then on the next click of the menu bar, the toggle
function tries to remove the open
class again, because that's the one of the two toggle
functions that needs to execute next. Here's a slightly reworked solution:
$('a.nav-toggle').click(function() {
$('.nav-bar').toggleClass('open');
});