Update share and comment javascript