Update main.js

Removed end-of-file line addition.