builds js link dynamically.