write AJAX for pricing index page and changed code accordingly