Added support for complex CSS selectors. Fixes #3