Adds support for multiple classes in attributes.

It was easy to miss as multiple classes are never mention in any documentation and not found in any of the tests.

This just conforms the implementation of class/ID-matching better to the PHP & PC solutions.

fixes #3.
Clean up.

Cleaned up the code and tried to add consistency.
Ran jsHint and fixed as much as was possible/resonable.