Set $url to the correct protocol

When the WordPress admin is forced to use https but the site is using http, the form won't submit via ajax because $url has the wrong protocol.

$url can be set to the correct protocol for all conditions using is_ssl - lines 18-23.