Added responsetype to text/json
Gets connection from browser to db