Update rules.js