Fixed code in Index.js