stop using scripts fullstop the web was never intended to send program code
any program code should run on the webserver
browsers should be minimalist and only support html