Needed to move the initialize javascript code to a place where it will get called when sections show and hide.