Simpler total-offset using getBoundingClientRect

(Not IE<8 compatible, but whatever.)