Fixed Bug: Not working on load until window resize.

Changed $(document).ready() to $(window).load()