Update index.js

debugging... added alerts