update with some javascript