Fixed js stack assertion