Updated JavaScript Exercise1