added a new file index.js where i removed the javascript to a separate
file for the index file.
made the change so it starts with the index file