$(window).load(function() is this to let images load before running it or? otherwise document.ready would work maybe?