Converted 'prompt' over to being an AngularJS service.