js for price update