Update bower.json

Remove trailing comma and update name.

Fixes #1.
Refactor code

Fixes #2 and #3.
Release 0.3.0