index.js conditionals