InfrastructuresTree script rewritten to CoffeeScript