typeof check function
component.json -> bower.json
trigger layoutComplete even if no items

Fixes #28