corrected scrollTop script