updated bower, params can be a function