add js code to update quote