Convert @lou's JS-style arrays to Ruby-style ones