added rule.js