Rename documentation code to index.js