Convert JS array to Ruby when extracting dependencies.