Update main-with-constructor.js