Update JavaScript code with time ago indication