Made references to site instead of localhost in js.