Update: if selector is not given, use body as default selector