Official Mailin provided API Javascript wrapper.