JS to update content height