javascript sharing