Now loads main.js instead of coding within index.html