Update jquery.rwdImageMaps.js

Rewrote the whole thing in order to understand, hopefully reintroducing a few of the performance enhancements that seemed to have got lost.