Revert "Revert "Revert "added handling of invalid JSONP requests"""

This reverts commit 38313b8f2884733a54f4e6e76e28855db6bae874.