Added support for contentSelector option

Previous version didn't support contentSelector option properly