ajax mechanism with price modification depending on quantity fully functional