use cached window object instead of creating new jQuery object for window object
adjust the namespace of unbinding resize event for the window object
create deferred for onAfterLoad event to execute onAfterLoad callback after the plugin has finally executed the init method.
convert if not statements to unless