add viewerURL as result param to be sent to front end.
remove console.log