update javascript added arguments