Frontend exercise with plain js.