Fixed a couple of recurring js errors in the rule view and markup-view
Merge pull request #40 from captainbrosset/markupview-ruleview-errors

Fixed a couple of recurring js errors in the rule view and markup-view