index is now js, as it shows how to use the javscript api