Adding index.js to the project

Main file with the primary functions.