Move dependencies into js/lib.