fix JavaScript spelling