trying to clean up index.js to make this darn thing work, incremented version