Fixes component.json generator

The component.json file is not listing "moment.js" under scripts, and the module is therefore not usable with require