Although i changed my approach and just dumped the kodi compatible listing in a hidden div all the time.