JavaScript exam preparation