JavaScript that I did for a course