Fix js error, change respond_to to respond_with