update index.js with mood dependency