trim bower.json and metadata