Changed the call for getting product details from HTML page to JSON