Add unbind for 'document'.

The function call is needed cause there are mouse handlers
for the element.