Hi MagedMoh94 ,
I very much appreciate your... appreciation! 😁
 
The 500 at the end of the script is the speed/timing of the scroll.
With a value of 500 it will take 500ms/0.5 seconds to scroll to the given id.
If you, for example, change it to 2000. 
It will now take 2000ms/2 seconds to scroll to #tickets.