fixed gitgnore and updated main.js