fix url in javascript to main server