Add my solution to Javascript/jQuery exercise