slightly more resilient links for javascript stuff