bowerify repository and small refactoring