main.js offset change