Using jquery.offset() rather than .position() to get position relative to document
Updating to reposition handle on window resize
Updating to use correct factory for handle