Update index.js

Changed duplicate function names