[CDF-296] - Publish js was not called