allows jpgjs to deal with datauri images

without running into CORS restrictions
space after `if` before `(`