Add js of share function