element() accepts JS objects