update redis.js and badges model