Fix a bug of a javascript function implementing Read More