Update addon to use new style of index.js