Update main.js

increased var limit from 50 to 250