works on SSL - take 3
Merge pull request #3 from paulirish/patch-3

works on SSL - take 3