Extract CommonJS required module names in JS code