jQuery plugin to get an object's dimensions