Update main.js

Added the variable