ENH: moved some html code away from index.rst 

For a less bloated and more readable index.rst...