remove bower and fix bugs in os x