Hi Pranjal, this is an excellent opportunity to use the debugging tools available in modern browsers. F12 will bring up the tools (Chrome, Firefox, or IE).
Check out the console window. If there are errors, they will appear in this window.
Go to the scripts window, bring up your source code, and set a breakpoint on the "success" callback. Step through the code a line at a time to see what's happening. For example, you are looking for an element named data.query.results.quote. Does this element really exist? Can you see anything else that's not working as expected?