A Titanium Mobile javascript example about using Beintoo gamification API using REST calls