reworking javascript to be more performant. Also set read-more-container height dynamically