Added two ways to create object in main.js to match reporter versions.