Bug in main.js fixed.