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

This reverts commit c046049ab5ac0cefbbca57dc86270b134575ec14.