Fix P2 interaction with search links

Need to prevent the default action so that the page isn't reloaded.

Also, since the click event binding uses delegation, it isn't necessary to
wrap it in $(document).ready().