Escape "class" attribute

Closes #1087

The fix was fairly straightforward: just required an extra "if" clause to test if the class attribute was escaped.

I also added a section in the `Readme.md` to help get started in contributing, as I hadn't used the mocha framework before and only figured it out after excessive googling and happening to google "mocha" after seeing the `test/mocha.opts` file.