fixed javascript spelling