Issue 11 - Error "document.body is null" when loading script

This has been fixed by not getting the browserWidth until we fire our ready method
moved the attaching of resize event to the .ready method