Migrate vector/path CoffeeScript code