[IMP] Javascript adapted for multi ads