Fixed ajax error for issue #21