bug ReferenceError: targeurl is not defined

Signed-off-by: Marc Delisle <marc@infomarc.info>