basic.js - check scroll until where