Update bower.json files
Code refactoring