adapt js links