Update invite_all.js

Removed unnecessary code