Added tests
Updated bower info
Refactored plugin