Justin Timberlake confirmed to write new music for animated film ‘Trolls’