Update main.js

encountered some strange errors when updating the repository ... already were corrected