add bower support
fix code format issue