changed index.js to include logic!
fixed files, again