API Wrapper in JavaScript for Redu