updated javascript ui