Help with using openAI Assistants via API in Javascript Chrome Plugin

I’m trying to create a simple chrome plugin that lets me upload a file /files.

UPDATED/FIXED

NO LONGER NEED THIS THREAD PLZ DELETE TY