Revert "Delete autopageinvite.js"

This reverts commit 569e3df7f855909c8ffab54d6dbf183763b65fac.