Javascript and RESTful API for Lagoa's platform