create bower.json and extract the required code