Added resizing on window.onresize and document.ready
Fixes #5