Migrating to a different JS object model