HTML 5 Javascript API index generator