Using JavaScript how can I animate a number from one value to another, like this:
function animate(start_value, end_value,