Modify view.js to try to get share button working