update cdn links to support both http and https (fixes #475, thanks @s-u)