Handle some JSON-P edge cases