button js update