Implement check_consent hook with jsonp callback support, manually tested