Update scratch.js

Code added to check the percentage of the interest section that has been revealed