link to SO question
Playing with http://stackoverflow.com/questions/23897098/how-to-unit-test-javascript-code-that-dynamically-loads-javascript-files