Magnet rest2mobile SDK for JavaScript