Managing dependencies in JS lib.