Update main-1.6.js

javascript bugfix