add rule.js
move execRuleTable() from render.js to rule.js