How the heck do you upload a local JS file

I am having an issue uploading my local js file that kinda does cookie stuff Any help?