Fixed several JavaScript translations to match server implementation