Updated bower.json to include jquery. Added checks to value update function to ensure duplicated states will not get counted twice.