make dpd.js https aware (fixing issue #162)