Update main.js

Incorrect charting calculation fixed. If small project, the inception and transition were being cut off.