Additional explanation Javascript