add a print-imports script that we can use to extract the dependency list from a JS file