start to add compatibility with iOS and Android JS app