calculate age and update index.html file