Set up js callback pipe. Will need AJAX callbacks soon.