- updated javascript