Update index.js

fixed only removed first logs issues