Moved close directions click event to doc ready