Added ajax call to ruby backend