Correct "const" to "var" for upload javascript file.