Added support for contentSelector option

Previous version didn't support contentSelector option properly
Merge pull request #2 from charlester/patch-1

Added support for contentSelector option.