fix traversing to '#' on close

since we don't use jQuery any more returning `false` from event handler
does not supress default browser behavior
added call to `preventDefault` in close handler