Some fixes (likes count and history.js)