Fix incorrect Javascript method name.