Changed scroll position to pageYOffset