bind events on document element instead of window

fixes click events when using Twitter Bootstrap