using .innerHeight() for $cont was incorrect. changed to .height()