removed duplicate else if from index.js