Making it work with latest bower

Major failures when working with latest versions of bower since they changed the API when changed from 0.9 to 1.X it requires less code now.