Update index.js

fixes error with none-existent listeners