share links js error