Fix juicy-tiles selection in shadowDOM and with templates