Update viewrules.js