update javascript status