Update rules.js

let -> var bugfix, otherwise Chrome errors.