Hello Jesus
What you were trying to do looked overly complicated to me. Also, be careful calling both MathJax and KaTeX in the one script, as they will surely not play nicely.
I'm not sure what you mean by "I can click on my end but the fiddle doesn't seem to work when clicked."
I think I can see what you are wanting to end up with. Essentially, what you can do is:
1. Create the array of ticks you want
2. Compare the values from the array to the "v" in the usrCoords step in a loop.
2. Get MathJax to render the fractions (you need to tell it to do so after each time you change the ticks).
I've put the ticks creation part in a function so we can call it multiple times, and I've given you a slider so you can change tick distances easily.
Note: Some of the fractions ended up in funky positions, but settled into the correct places on a user action.
BTW, you can't use the $0$ approach in this case - it needs to be \( 0 \).
Here it is:
Hope it helps
Regards
Murray