add bower support and mocha test