Merging index.js with Daniel.