manually repaired structured.js