Refactoring the `fartscroll.js` code 

This PR is just cleaning up the code to look better the smell still the same