updated main.js to use angular and update its  with the files dragged and dropped