adding initial support for testing javascript
fix css selector for classes, did not work for elements with multiple classes