update javascript api for ios devices --temporary