minor change in ZigZag.js