Fix __hasClass method for correctly validating

Previous validate return true even when element.className="someclass" and class_name="some".
I used concatenation with whitespace instead of RegExp specifically cuz RegExp work a little slower (peeped in jq ;)