Fixed javascript upload  verification