Detect the JS files that are being required inside of a widget JS file

Per https://github.com/bp323/3akai-ux/commit/cdca057b2f1ab6ba5418824763496ca35f34cf95#commitcomment-6358505 we should come up with a way to find all JS files that are being required inside of a widget JS file to be able to run our tests on them.
The JavaScript shouldn't be added to the widget's Javascript as that will give an incorrect error description when the tests fail on it.