resizeOnRefresh option

resizeOnRefresh option added with documentation and example. Apologies again for the index.html diff, which is primarily indentation adjustment.