change path name to JavaScript