Update composer.js

Wrong compare to "undefined" and name.length of undefined.
Yes, but you should have 4 spaces instead of 8 :)