Update rule.js