fix for #1730 component i18n

all tests passed  
I tested it and it works now :smile_cat:  
tested with `component install timaschew/moment@develop`
javascript files need to be listed at **scripts** not **files**