Update main.js

unattaching