use $(window).load to ajust canvas height so that height is correct