Added ability to use custom link prompt

Allows for flexible integration with apps that may not want to
use crude window.prompt