Look for err instead of ref (can be undefined)
Add bower.json