Fixing targets being ignored in main.js file