Necessary Maintenance to the index.js File

Cleaned it up a bunch