fixes and updates dependencies in pkg.json and bower.json