Etienne, you forgot the '?>' at the end of jupload.php ;)
PHP closing tag i.e. "?>" at the end of a php file is completely optional and it doesn't harm if you omit that. In fact now a days programmers leave that out intentionally as blank line might outputted because of an empty line after that tag.
Good to know. Thank you.