Changed the way div canvas height is determined, should be more flexible now