State select navigation fixed

var menu = $(‘.bottom-row’);
var menu_top_value = menu.offset().top;

$(window).bind(‘scroll’, function () {
if ($(window).scrollTop() >= menu_top_value) {
menu.addClass(‘menufix’);

} else {
    menu.removeClass('menufix');
}

});

How to select that state when the menufix still not apply with JS?