Bower and Preview refactoring