Fix a bug in migrating to JS

Default value for days should be 1, but somehow while migrating, it was set to 0.

Test case added.
Remove minified version from repo
Update bower version
0.1.9