Update main.js

took out y+1 for just y as +1 is no longer needed for troubleshooting