javascript client for sprintly CORS API