update share URLs and hashtags in javascript