Fixed two bugs

1) Fixed scrollbar moving to top of page when window is resized
2) Fixed resize events so that, when the window is resized, the
scrollbar won't appear unless $.scrollbar(); function has been called.