Simplifed JavaScript