Why use JavaScript at all?
Create a field for reading time in ACF.
create an acf/save_post action.
get the post content you want use to calculate, make the calculation and then use update_field() to save this value to the post.
then you can just display this field where it needs to be shown.