Fixed js upload error, RegExp filename