document.ready only worked in Chrome, not in Firefox.. :(
I was unable to use .offset() until "window load" function was triggered there