Update main.js

Validating if the file update is inside of the project.