Edited main.js to use the given getter method I wrote as opposed to directly accessing object fields.