Corrected component.js generation script, updated smoosh

Older smoosh was not possible anymore to be installed so it was replaced
with newest version
Changed 4 spaces into 2 in generation
Remove unnecessary async read/write
Mixed double and single quotes removal
Newline at the end of file
Merge pull request #113 from piteer1/master

Corrected component.js generation script, updated smoosh