Added output_type=json to ajax requests