Update rules.js

Adding greaterThan and lessThan rules