required javascript api