Removed unused var

Removed unused startY variable.
Made startTopScroll local to event handler.