upstream z.js