added function to insert the top 5 topics into index.jade