Modifiying some javacript's function name, for the sake of readibility
implemented file opload feature