adding basic javascript
changing index and styles