Update index.html to clean JavaScript code
Update index.html to clean JavaScript code

I tested and think this approach could be clearer and easier to understand.
mdn/learning-area,mdn/learning-area,mdn/learning-area,mdn/learning-area