Formatting javascript
Formatting index