Update main.js

Click performance tweak.