fixed js linking error