fixing jquery bind and delegate to allow document nodes