added getAPI in ExternalInterface