Here is my first algorythm using JQuery/JS as a student in web development