Fixes component.json generator

The component.json file is invalid without listing `moment.js` under both index and scripts.