Fix JavaScript spelling