Update main.js to reflect doc