Create rules.js