updated javascript changes