First JavaScript exercise