Pushed share URL generation to JS