Made year fraction calculation granular within the actual day

Additional small HTML bug fix