Transferring the JS to an App.js

- took out the js from the index.