Default Accept header to JSON

Sets the default ajax config header for Accept to 'application/json'.