adapted js link