Updated main.js to send JSONP request.