change EOT to JS