add a new plugin option 'watchForResize', to handle browser resize event