Use bower to build libraries.js
Remove unused dependencies