Added moment.js and a new random logic based on cookies