I've got a pop-up window that calls a RESTful backend to do Oauth authentication, but when the result is returned, it displays the JSON in the popup window rather than closing the popup window and storing the JSON in a model. How do I fix this?I've got a pop-up window that calls a RESTful b