Finally settled on a method of loading arbitrary js files.
Updated unit-tests to follow suit.