take hoodie.js path into account with cross-domain setup