autoHeight + function Containers within JS