backend javascript update