Update ruleset.js

Correct arguments for tree.Element
Merge pull request #1815 from oyejorge/patch-5

Correct arguments for tree.Element