added handling of invalid JSNP requests