BUG: Fixed cross-domain json requests

This commit fixes the cross-domain json requested (when "www" is
omitted).
Merge pull request #72 from cpelley/fix_java_script

BUG: Fixed cross-domain json requests