PhoneGap + Rails + Ajax + json