Update composer.js

Changed with typeof.