Update rules-model.js