upload php and javascript example