script in javascript to generate a css file for retrieving badges (example of use node fs)