Renamed index.js and added onclick to buttons