Added mode to squatch.js