JS fix if frame exists