Work round uglify mangling bug

The constructor name gets mangled. It’s probably better to use the
model data here anyway.