Added mode to squatchjs