changes to main.js -> now the path works