However, the somecode.js is different based on other parameters on your page. So you would need to pass a variable rather than the static string to the src. If you just replace somecode.js, with a variable name, you code will not be called.
The following example shows how you can manipulate DOM to define src so that your code runs.
/bin/sh: node: command not found Program exited with status code of 127
Brackets cannot find node binary file.
Open terminal and type the following commands and note the addressed returned:
which node which npm
Click on Node.js > Configuration... from the main menu. Then copy/paste the paths to binary files you retrieved in the command line. For example: